<?php

namespace App\Kuafu\Config\Controller\Internal;

use App\Kuafu\Base\Controller\BaseController;
use App\Kuafu\Config\Model\ConfigModel;
use Illuminate\Http\Request;

class ConfigController extends BaseController
{
    public function getConfig(Request $request)
    {
        $type = (string)$request->get('type');
        $key  = (string)$request->get('key');

        return $this->success(['config' => ConfigModel::getConfigByTypeKeyOne($type, $key, 30)]);
    }
}
